import MESLIST from 'src/boot/factory/mes-list'
const { getUnreadSum } = MESLIST

function getMsgRead ({ commit }, userId) {
  getUnreadSum(userId).then(res => {
    const ret = res.data
    commit('SET_NUM', { count: ret })
  }).catch(err => {
    commit('SET_NUM', 0)
    console.log(err)
  })
}
export default {
  getMsgRead
}
